#ifndef TANK_H
#define TANK_H

#include <QObject>
#include <QPainter>

enum direction{
    xup,xright,xdown,xleft
};

class Tank : public QObject
{
    Q_OBJECT
public:
    int pos_x;
    int pos_y;
    direction mydir;
    explicit Tank(QObject *parent = nullptr);
    void DrawTank(QPainter* p,direction d);
    void move(int dx,int dy);

private:
    QImage tank;


signals:

};

#endif // TANK_H
